package pare.cliente.iu;

import java.awt.Rectangle;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class IU_FimRodada extends JFrame {

	private static final long serialVersionUID = 1L;
	private JPanel jContentPane = null;
	private JLabel figuraPare = null;
	
	/**
	 * This is the default constructor
	 */
	public IU_FimRodada() {
		super();
		initialize();
	}
	
	

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		//Icon pare = new ImageIcon(getClass().getResource("Pare.gif"));
		this.setSize(304, 318);
		this.setContentPane(getJContentPane());
		this.setLocationRelativeTo(null);
		this.setTitle("Fim da Rodada");
		getJContentPane();
		exibeTela();
	}
	
	public void fechaTela(){
		this.setVisible(false);
	}

	public void exibeTela(){
		this.setVisible(true);
	
	}
	
	public void espera5(){
	
		try {
			figuraPare.updateUI();
			Thread.sleep(2000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		this.fechaTela();
	}
	
	/**
	 * This method initializes jContentPane	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			figuraPare = new JLabel();
			figuraPare.setBounds(new Rectangle(0, 1, 298, 288));
			Icon pare = new ImageIcon(getClass().getResource("Pare.gif"));
			figuraPare.setIcon(pare);
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.add(figuraPare, null);
		}
		return jContentPane;
	}

}  //  @jve:decl-index=0:visual-constraint="205,97"
